package day02_oop_code.com.itheima.d10_interface_demo;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student> students = new ArrayList<>();
        students.add(new Student("小王", '男', 90));
        students.add(new Student("小张", '女', 80));
        students.add(new Student("小李", '男', 70));
        students.add(new Student("小赵", '女', 60));
        students.add(new Student("小孙", '男', 50));
        students.add(new Student("小吴", '女', 40));
        ClassDataImpl2 data = new ClassDataImpl2(students);
        data.printAllStudentAverageScore();
        data.printAllStudentInfo();

    }
}
